#pragma once

#include "Connection.h"

namespace phynet{
namespace net{

Connection::Connection()
{
	Channel* temp = new Channel;
	temp->SetFlag(Unreliable);
	m_channels.push_back(temp);

	temp = new Channel;
	temp->SetFlag(Sequential);
	m_channels.push_back(temp);

	temp = new Channel;
	temp->SetFlag(Reliable);
	m_channels.push_back(temp);

	temp = new Channel;
	temp->SetFlag(Ordered);
	m_channels.push_back(temp);
}

Connection::~Connection()
{
	//TODO: delete channels
}
}} //namespaces